#coding=utf-8

from django.conf.urls import patterns, url

__author__ = 'czq'
import views
bbsClass=views.ClassView()
bbsTheme=views.ThemeView()
bbsReply=views.ReplyView()

urlpatterns = patterns('',
                       #url(r'^(?P<name>.*?)_(?P<action>list|add|delete)/(?P<id>\d*)$', bbsUrl.Redirect,name="_list"),

                       url(r'^bbsClass_list/$', bbsClass.list,name="bbsClass_list"),
                       url(r'^bbsClass_list-(?P<classId>\d*)/$', bbsClass.list,name="bbsClass_list"),
                       #url(r'^bbsClass_delete-(?P<id>\d+)/$', bbsClass.delete,name="bbsClass_delete"),
                       #url('^bbsClass_add-(?P<classId>\d*)/$', bbsClass.add,name="bbsClass_add"),
                       #url('^bbsClass_update-(?P<classId>\d*)/$', bbsClass.update,name="bbsClass_update"),
                       #
                       #
                       #url('^bbsTheme_add/(?P<classId>\d*)/(?P<id>\d*)$', bbsTheme.add,name="bbsTheme_add"),
                       #url('^bbsTheme_delete-(?P<id>\d+)/$', bbsTheme.delete,name="bbsTheme_delete"),
                       url('^bbsTheme_list-(?P<classId>\d*)/$', bbsTheme.list,name="bbsTheme_list"),
                       url('^bbsTheme_list_search/$', bbsTheme.list_search,name="bbsTheme_list_search"),
                       url('^bbsTheme_show-(?P<id>\d*)/$', bbsTheme.show,name="bbsTheme_show"),
                       url('^bbsTheme_action-(?P<id>\d*)/$', bbsTheme.show_acton,name="bbsTheme_action"),
                       url('^bbsTheme_vote-(?P<id>\d*)/$', bbsTheme.show_vote,name="bbsTheme_vote"),
                       url('^bbsTheme_add-(?P<id>\d*)/$', bbsTheme.add,name="bbsTheme_add"),
                       url('^bbsTheme_move-(?P<id>\d*)/$', bbsTheme.theme_move,name="bbsTheme_move"),

                       #
                       url('^bbsReply_list-(?P<themeId>\d*)/$', bbsReply.list,name="bbsReply_list"),
                       url('^bbsReply_delete-(?P<id>\d+)/$', bbsReply.delete,name="bbsReply_delete"),



                       url(r'$', bbsClass.list),

)